package com.gec.domain;

//RoleMenu 与 视图是对应的。
//即视图的一个模型类。[查询使用]
public class RoleMenu {

	private String roleId;     //角色 ID
	private String itemId;     //子菜单id
	private String itemName;   //子菜单名
	private String urlLink;    //映射地址
	private String visible;    //可见性
	private String menuId;     //主菜单id
	private String menuName;   //主菜单名

	public RoleMenu() { }

	public RoleMenu(String[] data) {
		this.roleId = data[0];
		this.menuId = data[1];
		this.menuName = data[2];

		this.itemId = data[3];
		this.itemName = data[4];
		this.urlLink = data[5];
		this.visible = data[6];
	}

	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public String getUrlLink() {
		return urlLink;
	}
	public void setUrlLink(String urlLink) {
		this.urlLink = urlLink;
	}
	public String getVisible() {
		return visible;
	}
	public void setVisible(String visible) {
		this.visible = visible;
	}
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Override
	public String toString() {
		return "RoleMenu [roleId=" + roleId + ", itemId=" + itemId +
				", itemName=" + itemName + ", urlLink=" + urlLink
				+ ", visible=" + visible + ", menuId=" + menuId +
				", menuName=" + menuName + "]";
	}

}
